package com.bcx.crm.spring_boot.springMVC.springMvcTest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ys on 2018/4/27.
 */
@RestController
public class MyRestController {
    @Autowired
    @Qualifier("demoService")
    private DemoService demoService;
    @RequestMapping(value = "/testRest",produces = "text/plain;charset=UTF-8")
    @ResponseBody
    public String testRest(){
        return demoService.saySomething();
    }
}
